.class final Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice$disconnect$1;
.super Ljava/lang/Object;
.source "NmeaUSBDevice.kt"

# interfaces
.implements Lcom/felhr/usbserial/UsbSerialInterface$UsbBreakCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;->disconnect()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;


# direct methods
.method constructor <init>(Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;)V
    .locals 0

    iput-object p1, p0, Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice$disconnect$1;->this$0:Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onBreakInterrupt()V
    .locals 2

    .line 105
    iget-object v0, p0, Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice$disconnect$1;->this$0:Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;->getSerialPort()Lcom/felhr/usbserial/UsbSerialDevice;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/felhr/usbserial/UsbSerialDevice;->close()V

    .line 106
    iget-object v0, p0, Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice$disconnect$1;->this$0:Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;

    invoke-virtual {v0, v1}, Llt/farmis/libraries/externalgps/providers/usb/NmeaUSBDevice;->setSerialPort(Lcom/felhr/usbserial/UsbSerialDevice;)V

    return-void

    .line 105
    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v1
.end method
